// JavaScript Document
//function loadpage()
//{
//	document.getElementById("info").style.display = "block";	
//	document.getElementById("stations").style.display = "none";	
//	document.getElementById("item").style.display = "none";	
//	document.getElementById("postdoc").style.display = "none";	
//	document.getElementById("project").style.display = "none";	
//}

function getResult(str)
{
	//document.getElementById("dplist").innerHTML=str;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
		 {
		 alert ("Browser does not support HTTP Request")
		 return
		 } 
	var url="stlist.php"
	url=url+"?query="+str
	//document.write(url)
	xmlHttp.onreadystatechange=function(){
		 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		 { 
			 document.getElementById("stlist").innerHTML=xmlHttp.responseText 
		 } 
	}
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


function GetXmlHttpObject()
{
	var xmlHttp=null;
	
	try
		 {
		 // Firefox, Opera 8.0+, Safari
			 xmlHttp=new XMLHttpRequest();
		 }
		catch (e)
		 {
		 // Internet Explorer
			 try
			  {
				  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			  }
			 catch (e)
			  {
				  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			  }
		 }
	return xmlHttp;
}

function showmenu(id)
{
	document.getElementById("info").style.display = "none";	
	document.getElementById("stations").style.display = "none";	
	document.getElementById("item").style.display = "none";	
	document.getElementById("postdoc").style.display = "none";	
	document.getElementById("project").style.display = "none";	

	document.getElementById(id).style.display = "block";
}

function hide(id)
{
	document.getElementById(id).style.display = "none";	
}
function getinfo()
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
		 {
		 alert ("Browser does not support HTTP Request")
		 return
		 } 
	var url="right.html"
	//url=url+"?query="+str
	//document.write(url)
	xmlHttp.onreadystatechange = function(){
		 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
		 { 
			 document.getElementById("info").innerHTML=xmlHttp.responseText 
		 } 
	}
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}